<h1>Listing addons</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Auther</th>
    <th>Supported</th>
    <th>Update time</th>
    <th>Description</th>
    <th>File name</th>
    <th>View times</th>
    <th>Download times</th>
    <th>Like</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @addons.each do |addon| %>
  <tr>
    <td><%= addon.title %></td>
    <td><%= addon.auther %></td>
    <td><%= addon.supported %></td>
    <td><%= addon.update_time %></td>
    <td><%= addon.description %></td>
    <td><%= addon.file_name %></td>
    <td><%= addon.view_times %></td>
    <td><%= addon.download_times %></td>
    <td><%= addon.like %></td>
    <td><%= link_to 'Show', addon %></td>
    <td><%= link_to 'Edit', edit_addon_path(addon) %></td>
    <td><%= link_to 'Destroy', addon, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Addon', new_addon_path %>
